package jsp;

import DAO.EmpDao;
import entity.Emp;
import entity.EmpManager;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

@WebServlet(name = "ShowAllEmpJsp", value = "/Manager/safe/ShowAllEmpJsp")
public class ShowAllEmpJsp extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       List<Emp> empList = (List<Emp>)request.getAttribute("empList");
       for(Emp e:empList){
           System.out.println(e);
       }
    }
}
